package com.solairen.myapplication.net

import com.solairen.myapplication.data.ProfileModel
import kotlinx.coroutines.Deferred
import retrofit2.Response
import retrofit2.http.FieldMap
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiService {

    // 登录
    @POST("/hotkey/login")
    fun login(@FieldMap map: Map<String, *>): Deferred<Response<BaseModel<String>>>

    // 注册
    @POST("/hotkey/register")
    fun register(@FieldMap map: Map<String, *>): Deferred<Response<BaseModel<String>>>

    // 获取数据
    @POST("/hotkey/getData")
    fun getData(@FieldMap map: Map<String, *>): Deferred<Response<BaseModel<String>>>
}